:root {
  --czr-main-color: rgba(21, 90, 239, 1);
  --czr-main-color-rgb: 21, 90, 239;
}

.__disabled {
  opacity: 0.3 !important;
  &:hover {
    cursor: not-allowed !important;
  }
}

.__hover {
  &:hover {
    opacity: 0.75;
    cursor: pointer;
  }
}

.__hover-bg {
  &:hover {
    opacity: 0.75;
    cursor: pointer;
    background-color: #c8ceda33;
  }
}

.__text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  &.el-link {
    max-width: 100%;
    .el-link__inner {
      display: unset;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      word-break: break-all;
    }
  }
}
.__text-ellipsis-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}
.__text-ellipsis-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
}
.__text-ellipsis-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 4;
}
.__text-ellipsis-5 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 5;
}
.__text-ellipsis-6 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 6;
}

.__normal-page {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  .__normal-tree {
    border-radius: 8px;
    width: 246px;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-right: 16px;
    background-color: #ffffff;
    .__normal-tree_filter {
      width: 100%;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 10px;
    }
    .__normal-tree_content {
      flex: 1;
      overflow: auto;
      padding: 10px;
      .el-tree {
        .el-tree-node {
          .el-tree-node__content {
            height: auto;
            .el-tree-node__label {
              white-space: break-spaces;
              padding: 4px 0;
            }
          }
          &.is-current {
            .el-tree-node__label {
              color: var(--czr-main-color);
            }
          }
        }
      }
    }
  }
  .__normal-content {
    flex: 1;
    position: relative;
    overflow: hidden;
  }
}
.__normal-form {
  padding: 16px 24px 0 24px;
}
.__czr-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
  .el-pagination__total {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #999999;
  }
  .el-pagination__sizes {
    .el-select {
      .el-select__wrapper {
        .el-select__selection {
          .el-select__selected-item {
          }
        }
      }
    }
  }
  .btn-prev,
  .btn-next {
    background-color: transparent !important;
    color: #999999 !important;
  }
  .el-pager {
    .number {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #999999 !important;
      border: 1px solid #eaeaea;
      background-color: transparent !important;
      &:hover {
        background-color: #0062e9 !important;
        opacity: 0.75;
        color: #ffffff !important;
      }
      &.is-active {
        color: #ffffff !important;
        background-color: var(--czr-main-color) !important;
        opacity: 1;
      }
    }
    .more {
      background-color: transparent !important;
      color: #999999 !important;
      &:hover {
        color: #0062e9 !important;
      }
    }
  }
  button:hover {
    color: #0062e9 !important;
  }
  .el-pagination__jump {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #999999;
    .el-input {
      .el-input__wrapper {
        padding-left: 2px !important;
        padding-right: 2px !important;
        .el-input__inner {
          font-size: 14px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #999999;
        }
      }
    }
  }
}

.__czr-dialog {
  &.__czr-dialog-auto-height {
    .el-overlay-dialog {
      .el-dialog {
        max-height: var(--czr-dialog_max-height);
        min-height: var(--czr-dialog_min-height);
        height: unset;
      }
    }
  }
  &.__czr-dialog-hidden-style {
    .el-dialog {
      background-color: transparent;
      box-shadow: none;
      .el-dialog__header {
        display: none;
      }
      .__czr-dialog-foot {
        display: none !important;
      }
    }
  }
  .el-overlay-dialog {
    .el-dialog {
      padding: 0;
      height: var(--czr-dialog_height);
      $borderRadius: 8px;
      border-radius: $borderRadius;
      display: flex;
      flex-direction: column;
      &.is-align-center {
        margin: auto !important;
      }
      .el-dialog__header {
        padding: 0;
        margin: 0;
        ._czr-dialog-head {
          height: 50px;
          width: 100%;
          background-color: #f5f7fa;
          display: flex;
          align-items: center;
          border-radius: $borderRadius $borderRadius 0 0;
          font-size: 18px;
          font-family:
            PingFang SC-Medium,
            PingFang SC;
          font-weight: 500;
          color: #303133;
          padding: 0 20px 0 16px;
          box-sizing: border-box;
          .__cdh-title {
          }
          .__cdh-slot {
          }
          .__cdh-close {
            margin-left: auto;
          }
        }
      }
      .el-dialog__body {
        padding: 0;
        height: calc(100% - 50px);
        width: 100%;
        display: flex;
        overflow-y: hidden;
        flex: 1;
        .__czr-dialog-main {
          width: 100%;
          display: flex;
          flex-direction: column;
          .__czr-dialog-content {
            flex: 1;
            overflow-y: auto;
            padding: 1rem 1.5rem 0;
            &.no-foot {
              padding-bottom: 1rem;
            }
          }
          .__czr-dialog-foot {
            width: 100%;
            display: flex;
            align-items: center;
            box-sizing: border-box;
            gap: 10px;
          }
          &.isFull {
            overflow-y: auto;
            .__czr-dialog-content {
              overflow-y: unset;
            }
          }
        }
      }
    }
  }
}
.__czr-title_1 {
  width: 100%;
  height: 32px;
  font-size: 14px;
  font-family:
    PingFang SC-Regular,
    PingFang SC;
  font-weight: 400;
  color: #0062e9;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 10px;
  box-sizing: border-box;
  &:before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 14px;
    background-color: #0062e9;
  }
}
.__czr-title_table {
  font-family:
    PingFang SC,
    PingFang SC;
  font-weight: bold;
  font-size: 18px;
  color: #0b46c9;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 10px;
  box-sizing: border-box;
  &:before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 17px;
    background-color: #0b46c9;
  }
}

.__czr-popover {
  max-width: 60% !important;
  width: auto !important;
}

.__czr-cascader_only-last {
  li[aria-haspopup='true'] {
    .el-checkbox,
    .el-radio {
      display: none;
    }
  }
}

.__check {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 1px solid #d3d3d3;
  border-radius: 2px;
  cursor: pointer;
  font-size: 16px;
  &.active {
    background-color: #6587ff;
    border-color: #6587ff;
    display: grid;
    align-items: center;
    justify-content: center;
    position: relative;
    &:after {
      margin-left: 2px;
      position: absolute;
      content: '✔';
      color: #ffffff;
      font-size: 14px;
    }
  }
  &:hover {
    opacity: 0.8;
  }
}

.el-table-filter__list {
  overflow-y: auto;
  max-height: 40vh;
}
.el-tree-select__popper {
  .el-tree {
    .el-tree-node {
      .el-select-dropdown__item {
        &:after {
          display: none;
        }
      }
    }
  }
}

.__czr-table-form-column {
  .el-form-item:not(.is-error) {
    margin-bottom: 0 !important;
  }
}
.__czr-table-operations {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  > *:not(:last-child) {
    &:after {
      content: '';
      width: 1px;
      height: 12px;
      background-color: #e6e8ea;
      margin-left: 16px;
    }
  }
}

.__czr-confirm-dialog {
  .el-dialog {
    padding: 0;
    background-color: transparent;
    .el-dialog__header {
      display: none;
    }
    .__czr-confirm {
      background-color: #ffffff;
      border-radius: 0.4rem;
      display: flex;
      flex-direction: column;
      .__czr-confirm-head {
        width: 100%;
        height: 3.13rem;
        background-color: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        padding: 0 1rem;
        border-radius: 0.4rem 0.4rem 0 0;
        > div:nth-child(1) {
          font-weight: bold;
          font-size: 1.13rem;
          color: #303133;
        }
        > div:nth-child(2) {
          margin-left: auto;
        }
      }
      .__czr-confirm-content {
        margin: 1rem 1.5rem 0;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 0.5rem;
        display: flex;
        > div:nth-child(1) {
          margin-right: 0.75rem;
        }
        > div:nth-child(2) {
          flex: 1;
          font-weight: bold;
          font-size: 1rem;
          color: #333333;
        }
      }
      .__czr-confirm-foot {
        margin: 1.5rem 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
      }
    }
  }
}

.__czr-dialog-foot_submit {
  width: 61px;
  height: 28px;
  background: var(--czr-main-color);
  border-radius: 4px;
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.__czr-dialog-foot_cancel {
  width: 61px;
  height: 28px;
  background: #ffffff;
  border: 1px solid var(--czr-main-color);
  border-radius: 4px;
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: var(--czr-main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
